home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form SelectDirForm
- BorderStyle = 3 'Fixed Double
- Caption = "Select Directory"
- ClientHeight = 4170
- ClientLeft = 1935
- ClientTop = 1665
- ClientWidth = 4455
- ControlBox = 0 'False
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 4575
- Icon = 0
- Left = 1875
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4170
- ScaleWidth = 4455
- Top = 1320
- Width = 4575
- Begin CommandButton GetDirButton
- Caption = "&Get Dir Info"
- Height = 495
- Left = 3000
- TabIndex = 6
- Top = 2160
- Width = 1215
- End
- Begin DriveListBox DriveBox
- Height = 315
- Left = 255
- TabIndex = 4
- Top = 3735
- Width = 2475
- End
- Begin CommandButton CancelButton
- Cancel = -1 'True
- Caption = "&Cancel"
- Height = 465
- Left = 3000
- TabIndex = 7
- Top = 2880
- Width = 1215
- End
- Begin CommandButton OKButton
- Caption = "Change &Dir"
- Default = -1 'True
- Height = 465
- Left = 3000
- TabIndex = 5
- Top = 1440
- Width = 1245
- End
- Begin DirListBox DirBox
- Height = 1830
- Left = 270
- TabIndex = 2
- Top = 1485
- Width = 2460
- End
- Begin Label Label1
- Caption = "Current directory:"
- Height = 255
- Left = 240
- TabIndex = 8
- Top = 720
- Width = 1815
- End
- Begin Label Label3
- Caption = "Dri&ves:"
- Height = 255
- Left = 195
- TabIndex = 3
- Top = 3450
- Width = 765
- End
- Begin Label CurrDirLabel
- Caption = "---"
- Height = 225
- Left = 255
- TabIndex = 1
- Top = 1080
- Width = 3960
- End
- Begin Label Label2
- Caption = "Select a directory, then click Get Dir Info to get information about it."
- Height = 495
- Left = 240
- TabIndex = 0
- Top = 120
- Width = 3615
- End
- Sub CancelButton_Click ()
- Unload SelectDirForm
- End Sub
- Sub DirBox_Change ()
- ' propogate directory changes to other controls
- CurrDirLabel.Caption = DirBox.Path
- ChDir DirBox.Path
- End Sub
- Sub DirBox_Click ()
- DirBox_Change
- End Sub
- Sub DriveBox_Change ()
- ' change the DirBox control path, it will
- ' pass the change on to the FileListBox control
- DirBox.Path = DriveBox.Drive
- ChDrive (DriveBox.Drive)
- End Sub
- Sub Form_Load ()
- CurrDirLabel.Caption = DirBox.Path 'Show full path name in a label
- End Sub
- Sub GetDirButton_Click ()
- CurrDirLabel.Caption = DirBox.Path
- ChDir DirBox.Path
- dirPath$ = CurrDirLabel.Caption
- DirDirForm.Show
- End Sub
- Sub OKButton_Click ()
- DirBox.Path = DirBox.List(DirBox.ListIndex)
- End Sub
-